projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57691ea
)
seatdefault: use g_clear_pointer to unref the tools
author
Ignacio Casal Quinteiro
<qignacio@amazon.com>
Fri, 8 Jan 2021 12:11:56 +0000
(13:11 +0100)
committer
Ignacio Casal Quinteiro
<qignacio@amazon.com>
Fri, 8 Jan 2021 12:11:56 +0000
(13:11 +0100)
gdk/gdkseatdefault.c
patch
|
blob
|
history
diff --git
a/gdk/gdkseatdefault.c
b/gdk/gdkseatdefault.c
index 0a05046cc355ccd3d52b5fc9ed9285924c5df04a..7e2c83ea93093f14fce4bc5faecc6338097c8543 100644
(file)
--- a/
gdk/gdkseatdefault.c
+++ b/
gdk/gdkseatdefault.c
@@
-79,11
+79,7
@@
gdk_seat_default_dispose (GObject *object)
g_object_unref (l->data);
}
- if (priv->tools)
- {
- g_ptr_array_unref (priv->tools);
- priv->tools = NULL;
- }
+ g_clear_pointer (&priv->tools, g_ptr_array_unref);
g_list_free (priv->physical_pointers);
g_list_free (priv->physical_keyboards);